<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body style="padding: 50px;">
                                                        <!-- 是文件上传的必备属性, 如果没有这个属性, 文件不能上传 -->
    <form action="http://127.0.0.1/userinfo" method="post" enctype="multipart/form-data">
        <h2>个人信息</h2>
        昵称: <input type="text" name="nickname"><br>
        星座: <input type="text" name="xingzuo"><br>
        头像: <input type="file" name="profile"><br>
        <button>更新</button>
    </form>
</body>
</html>